# cmus-rg (cmus-remote graphical)

A simple graphical cmus status display in C using SDL2. Developed for educational purposes, with great inspiration from [https://github.com/dashed/tetris-sdl-c]. 

### install

1. install SDL2 ([www.libsdl.org](http://www.libsdl.org/)) *with* development headers and dependencies

- SDL2
- SDL2-devel
- SDL2_gfx
- SDL2_gfx-devel
- SDL2_image
- SDL2_image-devel
- SDL2_ttf
- SDL2_ttf-devel

2. use `make` to compile `cmus-rg`, or `make install` to compile and install to `/bin` (requires elevated permissions)

3. run with `./cmus-rg`, or `cmus-rg` if cmus-rg has been installed to `/bin`

### features in need of implementation

one day for sure

- support for resizing
- album art support
- dynamic font loading
  - half heartedly implemented
- multi font drifting (?!)
  - requires replacing current draw_text with a method that uses preassembled (cached) SDL_Textures with characters using their respective TTF_Font, probably (see https://stackoverflow.com/questions/45716356/utf-text-in-sdl2)
    - sounds like a big pain in the ass
- better text representation or mode toggle (show only meta, tags or set)
- actual cmus-remote functionality (pausing cmus, et cetera)
- dimension flags for scripting

### license

MIT
